home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / ccdl150e.zip / STRING.H < prev    next >
C/C++ Source or Header  |  1996-01-12  |  3KB  |  91 lines

  1. /*  string.h
  2.  
  3.     Definitions for memory and string functions.
  4.  
  5. */
  6.  
  7. #ifndef __STRING_H
  8. #define __STRING_H
  9.  
  10. #if !defined(NULL)
  11. #define NULL 0
  12. #endif
  13.  
  14. #ifndef _SIZE_T
  15. #define _SIZE_T
  16. typedef unsigned size_t;
  17. #endif
  18.  
  19.  
  20. int          memcmp(const void *__s1,
  21.                                        const void *__s2, size_t __n);
  22. void *  memcpy(void *__dest, const void *__src,
  23.                                        size_t __n);
  24. void *  memmove(void *__dest, const void *__src,
  25.                                         size_t __n);
  26. void *  memset(void *__s, int __c, size_t __n);
  27. char *  strcat(char *__dest, const char *__src);
  28. int          strcmp(const char *__s1, const char *__s2);
  29. char *  strcpy(char *__dest, const char *__src);
  30. size_t       strcspn(const char *__s1, const char *__s2);
  31. char *  strerror(int __errnum);
  32. size_t       strlen(const char *__s);
  33. char *  strncat(char *__dest, const char *__src,
  34.                                         size_t __maxlen);
  35. int          strncmp(const char *__s1, const char *__s2,
  36.                                         size_t __maxlen);
  37. char *  strncpy(char *__dest, const char *__src,
  38.                                         size_t __maxlen);
  39. size_t       strspn(const char *__s1, const char *__s2);
  40. char *  strtok(char *__s1, const char *__s2);
  41. char *  _strerror(const char *__s);
  42.  
  43.  
  44.           void *   memchr(const void *__s, int __c, size_t __n);
  45.           char *    strchr(const char * __s, int __c);
  46.           char *    strrchr(const char *__s, int __c);
  47.           char *    strpbrk(const char *__s1, const char *__s2);
  48.           char *    strstr(const char *__s1, const char *__s2);
  49.  
  50. /* Intrinsic functions */
  51. #if !defined(__MEM_H)
  52. void *  __memchr__(const void *__s, int __c, size_t __n);
  53. int          __memcmp__(const void *__s1,
  54.                                              const void *__s2, size_t __n);
  55. void *  __memcpy__(void *__dest, const void *__src,
  56.                                              size_t __n);
  57. void *  __memset__(void *__s, int __c, size_t __n);
  58. #endif
  59.  
  60. char *             __stpcpy__(char *__dest, const char *__src);
  61. char *  __strcat__(char *__dest, const char *__src);
  62. char *  __strchr__(const char *__s, int __c);
  63. int          __strcmp__(const char *__s1, const char *__s2);
  64. char *  __strcpy__(char *__dest, const char *__src);
  65. size_t       __strlen__(const char *__s);
  66. char *  __strncat__(char *__dest, const char *__src,
  67.                                               size_t __maxlen);
  68. int          __strncmp__(const char *__s1, const char *__s2,
  69.                                               size_t __maxlen);
  70. char *  __strncpy__(char *__dest, const char *__src,
  71.                                               size_t __maxlen);
  72. char *  __strnset__(char *__s, int __ch, size_t __n);
  73. char *  __strrchr__(const char *__s, int __c);
  74. char *  __strset__(char *__s, int __ch);
  75.  
  76. int            _lstrcoll(const char *__s1, const char *__s2);
  77. size_t         _lstrxfrm(char *__s1, const char *__s2,
  78.                                             size_t __n );
  79. int                     strcoll(const char *__s1, const char *__s2);
  80. size_t                  strxfrm(char *__s1, const char *__s2,
  81.                                           size_t __n );
  82.  
  83. #if defined(__USELOCALES__)
  84. #define  strupr   _lstrupr
  85. #define  strlwr   _lstrlwr
  86. #define  strcoll  _lstrcoll
  87. #define  strxfrm  _lstrxfrm
  88. #endif  /* __USELOCALES__ */
  89.  
  90.  
  91. #endif  /* __STRING_H */